module.exports = {
  port_data: 1829,
  port: 80,
  sid: 'sid',
  secret: '456123',
  client_dist: true,
  morgan: ':client-ip :user-id :method :url HTTP/:http-version :status :res[content-length] - :response-time ms',
  morgan_dev: true,

  domain: 'http://pyl.kkdd789.com',
  domainMap: {
    'pyl.kkdd789.com': 1
  },

  redis: {host: "127.0.0.1", port: 6379},
  // elasticsearch: {host: '119.29.104.149:9200', log: 'error', searchEnable: true, env: 'pro'},
  elasticsearch: {host: '116.62.175.49:9200', log: 'error', searchEnable: true, env: 'pro'},

  mysql_data: {
    dbname: 'taoke_data', username: 'gusonyang', password: 'vfg2mb77!@#Aa',
    connection: {
      dialect: "mysql",
      dialectOptions: {decimalNumbers: true},
      host: 'rm-bp141jau87d1dmip0do.mysql.rds.aliyuncs.com',
      port: 3306,
      timezone: '+08:00',
      query: {
        raw: true
      },
      logging: console.log
    }
  },
  mysql: {
    dbname: 'taoke_api', username: 'gusonyang', password: 'vfg2mb77!@#Aa',
    connection: {
      dialect: "mysql",
      dialectOptions: {decimalNumbers: true},
      host: 'rm-bp141jau87d1dmip0do.mysql.rds.aliyuncs.com',
      port: 3306,
      timezone: '+08:00',
      query: {
        raw: true
      },
      logging: console.log
    }
  },
  qiniu: {
    access_key: "yD5HbYVDgQGAE9TRwnzw_t6mGA92Bm4DBy9m0TX-",
    secret_key: "Bfo5UGp3AJoaJOFpaY-Zf2j_hcBr0egGdPCzMI4Y",
    image_bucket: "xcshop-i1",
    image_domain: "http://i1.xcworld.cn/",
    image_mirror: "http://wx.qlogo.cn/mmopen/",
    ue_bucket: "xcshop-a7",
    ue_domain: "http://a7.xcworld.cn/",
    ue_mirror: "http://demo.shop.xcworld.cn/",
    user_bucket: "xcshop-c1",
    user_domain: "http://c1.xcworld.cn/",
    user_mirror: "http://wx.qlogo.cn/mmopen/"
  },

  wechat: {
    shop_web_token: "wx5b1c81ba949bea8c",
    shop_web_appid: "wx5b1c81ba949bea8c",
    shop_web_secret: "cb1b7cb80522cc98075698d91a54f70a",
    shop_web_encodingAESKey: "1P5nKBke8mihxd23yI78nTDMBwdogQVqgyU2M9hqkvj",
    shop_web_mchId: "",
    shop_web_partnerKey: "",
    shop_web_debug: false
  },
  wechat_jssdk: {
    debug: false,
    jsApiList: [
      'onMenuShareTimeline',
      'onMenuShareAppMessage'
    ]
  },
  wechat_menu: {
    "button": [
      {
        "type": "view",
        "name": "找优惠券",
        "url": "http://pyl.you0738.com/"
      },
      {
        "name": "省钱联盟",
        "sub_button": [
          {
            "type": "click",
            "name": "如何使用",
            "key": "help_use"
          },
          {
            "type": "click",
            "name": "联盟海报",
            "key": "get_poster"
          },
          {
            "type": "click",
            "name": "加入我们",
            "key": "join_us"
          }
        ]
      }
    ]
  },

  taobao: {
    tbk: {
      app_key: '23767920',
      app_secret: '7e98c062b02ffc4a70e483e6485d2969'
    },
    _tbk: {
      app_key: '24628148',
      app_secret: '4a984c9f2189ec245fc34604b73c8188'
    }
  },
  captureHosts: [
    'http://114.215.240.205:1818'
  ],
  pid: 'mm_122710156_24524669_82450251',
  applyreason: '微信推广',

  webservice_key: 'taoke@1818.com',

  start_schedule: true
};
